package com.lzy.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * token实体 认证成功后，返回给接口的数据
 *
 * @author lzy
 */
@Data
@EqualsAndHashCode
@ToString
public class AuthToken {
    /**
     * com.lzy.interceptor.token
     */
    @ApiModelProperty(name = "accessToken", dataType = "String", required = true, value = "accessToken")
    private String accessToken;
    /**
     * 刷新token
     */
    @ApiModelProperty(name = "刷新token", dataType = "String", required = true, value = "刷新token")
    private String refreshToken;
    /**
     * token有效时间
     */
    @ApiModelProperty(name = "token有效时间", dataType = "Long", required = true, value = "token有效时间")
    private Long accessTokenExpiresIn;
    /**
     * token创建时间
     */
    @ApiModelProperty(name = "创建时间", dataType = "Long", required = true, value = "token创建时间")
    private Long createTime;

    @ApiModelProperty(name = "临时用户code", dataType = "Long", required = true, value = "临时用户code")
    private Long userCode;

    @ApiModelProperty(name = "设备id", dataType = "Long", required = true, value = "微信唯一设备id")
    private Long deviceId;
}
